package com.gzsxy.excel.constants;

/**
 * @Author
 * @Description
 * @Date 2022/01/18
 * @Param $
 * @return $
 **/
public class sysUserConstants {

    public enum educationEu{
        /**
         * OTHER
         */
        OTHER( "其他","0"),
        /**
         * BELOW_JUNIOR
         */
        BELOW_JUNIOR("初中及以下","1"),
        /**
         * SECONDARY_SPECIALIZED
         */
        SECONDARY_SPECIALIZED("中专","2"),
        /**
         * HIGH
         */
        HIGH("高中","3"),
        /**
         * JUNIOR
         */
        JUNIOR("大专","4"),
        /**
         * UNDERGRADUATE
         */
        UNDERGRADUATE("本科","5"),
        /**
         * MASTER
         */
        MASTER("硕士","6"),
        /**
         * Doctor
         */
        DOCTOR("博士","7");

        private String value;
        private String name;
        educationEu(String value, String name) {
            this.value = value;
            this.name = name;
        }

        public static String getNameByValue(String name) {
            for (educationEu t : educationEu.values()) {
                if (t.getValue().equals(name)) {
                    return t.getName();
                }
            }
            return null;
        }

        public String getValue() {
            return this.value;
        }

        public String getName() {
            return this.name;
        }
    }

    public enum StateEu{

        /**
         * JOB
         */
        JOB("在职","0"),
        /**
         * Resignation
         */
        RESIGNATION("离职","1"),
        /**
         *  Compensatory
         */
        COMPENSATORY("调休","2"),
        /**
         * OTHER
         */
        OTHER("其他","3");

        private String value;
        private String name;
        StateEu(String value, String name) {
            this.value = value;
            this.name = name;
        }

        public static String getNameByValue(String value) {
            for (StateEu t : StateEu.values()) {
                if (t.getValue().equals(value)) {
                    return t.getName();
                }
            }
            return null;
        }

        public String getValue() {
            return this.value;
        }

        public String getName() {
            return this.name;
        }
    }

    public enum JobEu{
        /**
         * JAVA
         */
        JAVA("JAVA","0"),
        /**
         * C
         */
        C("C++","1"),
        /**
         *  Compensatory
         */
        FONT("前端","2"),
        /**
         * ANDROID
         */
        ANDROID("Android","3"),
        /**
         * OTHER
         */
        OTHER("其他","4");

        private String value;
        private String name;
        JobEu(String value, String name) {
            this.value = value;
            this.name = name;
        }

        public static String getNameByValue(String value) {
            for (JobEu t : JobEu.values()) {
                if (t.getValue().equals(value)) {
                    return t.getName();
                }
            }
            return null;
        }

        public String getValue() {
            return this.value;
        }

        public String getName() {
            return this.name;
        }
    }

    public enum RankEu{
        /**
         *  Leadership
         */
        LEADERSHIP("领导","0"),
        /**
         *  Department Manager
         */
        DEPARTMENT_MANAGER("部门经理","1"),
        /**
         *  Deputy manager
         */
        DEPUTY_MANAGER("副经理","2"),
        /**
         *  Supervisor
         */
        SUPERVISOR("主管","3"),
        /**
         *  Ordinary employees
         */
        ORDINARY("普通员工","4"),
        /**
         *  Intern
         */
        INTERN("实习生","5"),
        /**
         *  OTHER
         */
        OTHER("其他","6");


        private String value;
        private String name;
        RankEu(String value, String name) {
            this.value = value;
            this.name = name;
        }

        public static String getNameByValue(String value) {
            for (RankEu t : RankEu.values()) {
                if (t.getValue().equals(value)) {
                    return t.getName();
                }
            }
            return null;
        }

        public String getValue() {
            return this.value;
        }

        public String getName() {
            return this.name;
        }
    }
}
